Other Classes
The following classes are available globally.
-
See moreDispatchTimeris a general-purpose wrapper over theDispatchSourceTimermechanism in GCD.Declaration
Swift
public class DispatchTimer -
Feedback event that can be created using
NavigationEventsManager.createFeedback(). UseNavigationEventsManager.sendActiveNavigationFeedback(_:type:description:)to send it to the server. Conforms to theCodableprotocol, so the application can store the event persistently.Declaration
Swift
public class FeedbackEvent : Codable -
Provides alternative access to routing API.
Use this class instead
See moreDirectionsrequests wrapper to request new routes or refresh an existing one. Depending onRouterSource,MapboxRoutingProviderwill use online and/or onboard routing engines. This may be used when designing purely online or offline apps, or when you need to provide best possible service regardless of internet collection.Declaration
Swift
public class MapboxRoutingProvider : RoutingProvider -
Proactively fetches tiles which may become necessary if the device loses its Internet connection at some point during passive or active turn-by-turn navigation.
Typically, you initialize an instance of this class and retain it as long as caching is required.
See moreNote
This object uses global tile store configuration fromNavigationSettings.tileStoreConfiguration.Declaration
Swift
public class PredictiveCacheManager -
A rounded button with an icon that is designed to float above
See moreNavigationMapView.Declaration
Swift
@objc(MBFloatingButton) open class FloatingButton : Button -
A banner view that contains the current step instruction along a route and responds to tap and swipe gestures.
Declaration
Swift
open class StepInstructionsView : BaseInstructionsBannerView -
UITableViewCellinstance that provides the ability to show a current step instruction along a route.Declaration
Swift
open class StepTableViewCell : UITableViewCell -
A label that is used to show a road name and a shield icon.
Declaration
Swift
@objc(MBWayNameLabel) open class WayNameLabel : StylableLabel -
A host view for
WayNameLabelthat shows a road name and a shield icon.
See moreWayNameViewis hidden or shown depending on the road name information availability. In case if such information is not present,WayNameViewis automatically hidden. If you’d like to completely hideWayNameViewsetWayNameView.isHiddenproperty totrue.Declaration
Swift
@objc(MBWayNameView) open class WayNameView : UIView
Install in Dash
Other Classes Reference